package a.i;

import java.net.URL;

public final class tb
{
  public static boolean a;
  
  public static boolean a(Object paramObject)
  {
    try
    {
      if (!p.b) {
        if ((paramObject instanceof Boolean)) {
          return ((Boolean)paramObject).booleanValue();
        }
      }
      if (paramObject == null) {
        System.err.println("WARNING: YUtil.getBool cannot convert to boolean");
      }
    }
    catch (Exception localException)
    {
      System.err.println("WARNING: YUtil.getBool cannot convert to boolean");
    }
    return false;
  }
  
  public static boolean b(Object paramObject)
  {
    try
    {
      if (!p.b) {
        if ((paramObject instanceof Integer)) {
          return true;
        }
      }
      int i = Integer.parseInt((String)paramObject);
    }
    catch (Exception localException)
    {
      return false;
    }
    return true;
  }
  
  public static boolean c(Object paramObject)
  {
    try
    {
      if ((p.b) || ((paramObject instanceof Double))) {
        return true;
      }
      Double localDouble = new Double((String)paramObject);
      double d = localDouble.doubleValue();
    }
    catch (Exception localException)
    {
      return false;
    }
    return true;
  }
  
  public static int d(Object paramObject)
  {
    boolean bool = p.b;
    try
    {
      if (!bool)
      {
        if ((paramObject instanceof Number)) {
          return ((Number)paramObject).intValue();
        }
        if (bool) {}
      }
      else if ((paramObject instanceof String))
      {
        if (bool) {
          break label57;
        }
        if (((String)paramObject).length() > 0) {
          return Integer.parseInt((String)paramObject);
        }
      }
      if (paramObject == null) {
        label57:
        System.err.println("WARNING: YUtil.getInt cannot convert to int");
      }
    }
    catch (Exception localException)
    {
      System.err.println("WARNING: YUtil.getInt cannot convert to int");
    }
    return 0;
  }
  
  public static double e(Object paramObject)
  {
    boolean bool = p.b;
    try
    {
      if (!bool)
      {
        if ((paramObject instanceof Number)) {
          return ((Number)paramObject).doubleValue();
        }
        if (bool) {}
      }
      else if ((paramObject instanceof String))
      {
        if (bool) {
          break label66;
        }
        if (((String)paramObject).length() > 0)
        {
          Double localDouble = new Double((String)paramObject);
          return localDouble.doubleValue();
        }
      }
      if (paramObject == null) {
        label66:
        System.err.println("WARNING: YUtil.getDouble cannot convert to double");
      }
    }
    catch (Exception localException)
    {
      System.err.println("WARNING: YUtil.getDouble cannot convert to double");
    }
    return 0.0D;
  }
  
  public static URL a(String paramString)
  {
    return new tb().getClass().getClassLoader().getResource(paramString);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.i.tb

 * JD-Core Version:    0.7.0.1

 */